package sysman.model;

/**
 * ģ��vo
 * 
 * @author lhx
 * @since 2009-11-21
 * @version 1.0
 *
 */
public class TemplateVo {
	private String id;
	
	private String displayItems;
	
	private String items;
	
	private String bgColor;
	
	private String bgImage;
	
	private Long style = 1L;
	
	private String styleImagePath;
	
	private String styleCssPath;
	
	private String styleJsPath;
	
	public String toString() {
		return this.id + "\n" + this.displayItems + "\n" + this.items + "\n" + this.bgColor + "\n" + this.bgImage +
				"\n" + this.style + "\n" + this.styleImagePath + "\n" + this.styleCssPath + "\n" + this.styleJsPath;
	}

	public String getDisplayItems() {
		return displayItems;
	}

	public void setDisplayItems(String displayItems) {
		this.displayItems = displayItems;
	}

	public String getItems() {
		return items;
	}

	public void setItems(String items) {
		this.items = items;
	}

	public String getBgColor() {
		return bgColor;
	}

	public void setBgColor(String bgColor) {
		this.bgColor = bgColor;
	}

	public String getBgImage() {
		return bgImage;
	}

	public void setBgImage(String bgImage) {
		this.bgImage = bgImage;
	}

	public Long getStyle() {
		return style;
	}

	public void setStyle(Long style) {
		this.style = style;
	}

	public String getStyleImagePath() {
		styleImagePath = "./images/portal/style/blue";
		if(this.style == 1L){
			styleImagePath = "./images/portal/style/blue";
		} else if(this.style == 2L){
			styleImagePath = "./images/portal/style/green";
		} else if(this.style == 3L){
			styleImagePath = "./images/portal/style/purple";
		} 
		return styleImagePath;
	}

	public String getStyleCssPath() {
		styleCssPath = "./styles/portal/style/blue";
		if(this.style == 1L){
			styleCssPath = "./styles/portal/style/blue";
		} else if(this.style == 2L){
			styleCssPath = "./styles/portal/style/green";
		} else if(this.style == 3L){
			styleCssPath = "./styles/portal/style/purple";
		}
		return styleCssPath;
	}

	public String getStyleJsPath() {
		styleJsPath = "./scripts/portal/style/blue";
		if(this.style == 1L){
			styleJsPath = "./scripts/portal/style/blue";
		} else if(this.style == 2L){
			styleJsPath = "./scripts/portal/style/green";
		} else if(this.style == 3L){
			styleJsPath = "./scripts/portal/style/purple";
		}

		return styleJsPath;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
	
	
}
